window.addEventListener('load',function(){





let  ZH=document.getElementById('zhanghao');
let SM=document.getElementById('saoma');
let  bd=document.getElementById('biaodan');
let  em=document.getElementById('erweima');
let an=document.getElementById('anniu')

    
ZH.addEventListener('click',function(){
    bd.style.display='block';
      an.style.display='block';
    em.style.display='none';
})


SM.addEventListener('click',function(){
    em.style.display='block';
    an.style.display='none';
    bd.style.display='none';
})




an.addEventListener('click',function(){

   
let name=document.getElementById('name').value;
let psd=document.getElementById('password').value;
      

if(name=="root" && psd=="123456"){
  undefined
  alert("登录成功");
  window.location = "index.html";
  
  }
  else{
  undefined
  alert("账号或密码错误");

 
  }
  












  })




})












